package com.zyx.mapper;

import com.zyx.pojo.Auto;
import com.zyx.pojo.Collect;
import com.zyx.pojo.CollectExample;
import java.util.List;

import com.zyx.pojo.Name;
import org.apache.ibatis.annotations.Param;

public interface CollectMapper {
    //删除收藏
    int delCollect(@Param("userId")Integer userId,@Param("autoId")Integer id);

    //根据用户id查询用户收藏车辆
    List<Name> queryByUserId(Integer userId);

    //判断用户是否收藏车型
    Collect queryCollect(Collect c);

    long countByExample(CollectExample example);

    int deleteByExample(CollectExample example);

    int deleteByPrimaryKey(Integer collectId);

    int insert(Collect record);

    int insertSelective(Collect record);

    List<Collect> selectByExample(CollectExample example);

    Collect selectByPrimaryKey(Integer collectId);

    int updateByExampleSelective(@Param("record") Collect record, @Param("example") CollectExample example);

    int updateByExample(@Param("record") Collect record, @Param("example") CollectExample example);

    int updateByPrimaryKeySelective(Collect record);

    int updateByPrimaryKey(Collect record);

    List<Name> selectByTen();
}